package com.moorror.codegenvel.common.table;

import com.intellij.ui.BooleanTableCellEditor;

import javax.swing.*;
import java.awt.*;

/**
 * @Author jiyanghuang
 * @Date 2025/8/26 23:05
 */
public class MREditorBooleanTableCellEditor extends BooleanTableCellEditor {

    @Override
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
        Object val = value;
        if(value instanceof ColumnDesc){
            ColumnDesc columnDesc = (ColumnDesc)value;
            val = columnDesc.getValueShow();
        }
        return super.getTableCellEditorComponent(table, val, isSelected, row, column);
    }
}
